package com.omg.constant;

import java.util.Random;

public class LPUtility {

	private final static Random random = new Random();

	private static final String getUniqString() {
		String hash1 = null;
		String hash2 = null;
		long r1 = 0;
		long r2 = 0;
		do {
			r1 = random.nextLong();
			r2 = random.nextLong();
			hash1 = Long.toHexString(r1);
			hash2 = Long.toHexString(r2);
		} while (hash1.length() != 16 || hash2.length() != 16);
		return hash1 + hash2;
	}

	public static final String getUserid() {
		return getUniqString();
	}

	public static final String getSid() {
		return getUniqString();
	}

	public static final String getActivityId() {
		return getUniqString();
	}

	public static final String getCommentId() {
		return getUniqString();
	}

	public static final String getMessageId() {
		return getUniqString();
	}
}
